package entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;

@Cached
public class AutoSite implements Serializable{
	
	@Id private String id = "";
	
	@Indexed private String url = "";
	
	@Unindexed private String regLink = "";
	
	@Unindexed private String regTitle = "";
	
	@Unindexed private String regContent = "";
	
	@Unindexed private String regRemove = "";
	
	@Unindexed private boolean getPage = false;
	
	@Unindexed private int currentPage = 1;
	
	@Unindexed private int totalPage = 1;
	
	@Unindexed private String sitePage = "";
	
	@Unindexed private int scheduleSite = 60; //minutes;
	
	@Unindexed private int scheduleSitePage = 60; //minutes;
	
	@Unindexed private Date lastestScheduleSite = new Date();
	
	@Unindexed private Date lastestScheduleSitePage = new Date();
	
	@Unindexed private String category = "";
	
	@Unindexed private boolean published = true;
	
	@Unindexed private boolean isTranslate = false;
	
	@Unindexed private String language = "en";
	
	@Unindexed private String translate = "en";
	
	@Indexed private int status = 1; //0-inactive, 1-active
	
	@Unindexed private String creator = "";
	
	@Unindexed private boolean hotNews = false;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getRegLink() {
		return regLink;
	}

	public void setRegLink(String regLink) {
		this.regLink = regLink;
	}

	public String getRegTitle() {
		return regTitle;
	}

	public void setRegTitle(String regTitle) {
		this.regTitle = regTitle;
	}

	public String getRegContent() {
		return regContent;
	}

	public void setRegContent(String regContent) {
		this.regContent = regContent;
	}

	public String getRegRemove() {
		return regRemove;
	}

	public void setRegRemove(String regRemove) {
		this.regRemove = regRemove;
	}

	public boolean isGetPage() {
		return getPage;
	}

	public void setGetPage(boolean getPage) {
		this.getPage = getPage;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public String getSitePage() {
		return sitePage;
	}

	public void setSitePage(String sitePage) {
		this.sitePage = sitePage;
	}
	
	public int getScheduleSite() {
		return scheduleSite;
	}

	public void setScheduleSite(int scheduleSite) {
		this.scheduleSite = scheduleSite;
	}

	public int getScheduleSitePage() {
		return scheduleSitePage;
	}

	public void setScheduleSitePage(int scheduleSitePage) {
		this.scheduleSitePage = scheduleSitePage;
	}

	public Date getLastestScheduleSite() {
		return lastestScheduleSite;
	}

	public void setLastestScheduleSite(Date lastestScheduleSite) {
		this.lastestScheduleSite = lastestScheduleSite;
	}

	public Date getLastestScheduleSitePage() {
		return lastestScheduleSitePage;
	}

	public void setLastestScheduleSitePage(Date lastestScheduleSitePage) {
		this.lastestScheduleSitePage = lastestScheduleSitePage;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public boolean getPublished() {
		return published;
	}

	public void setPublished(boolean published) {
		this.published = published;
	}

	public boolean isTranslate() {
		return isTranslate;
	}

	public void setTranslate(boolean isTranslate) {
		this.isTranslate = isTranslate;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getTranslate() {
		return translate;
	}

	public void setTranslate(String translate) {
		this.translate = translate;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public boolean isHotNews() {
		return hotNews;
	}

	public void setHotNews(boolean hotNews) {
		this.hotNews = hotNews;
	}	
	
}
